package com.wsj.message_server.utils;

import org.apache.commons.lang.StringUtils;

import javax.servlet.http.HttpServletRequest;

public class TokenUtil {

    public static Integer getUid(HttpServletRequest request) {
        if (!StringUtils.isBlank(request.getParameter("user_id"))) {
            return Integer.parseInt(request.getParameter("user_id"));
        }
        return null;
    }
}
